<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt" %>
<%@ taglib uri="struts-html"                   prefix="html" %>

<fmt:setBundle basename="ApplicationResources" />

<html:form action="/admin/updateUser.do">

<table>
    <tr>
    <td><fmt:message key="fieldLabel.userId"/></td>
    <td colspan="3">
            <c:out value="${userForm.userId}"/>
            <html:hidden property="userId" />
    </td>
    </tr>
    <tr>
    <td><fmt:message key="fieldLabel.name"/></td>
    <td colspan="3">
            <html:text size="40" property="name" />
    </td>
    </tr>
    <tr>
    <td><fmt:message key="fieldLabel.password"/></td>
    <td colspan="3">
            <html:text size="40" property="password" />
    </td>
    </tr>
    <tr>
    <td><fmt:message key="fieldLabel.employeeId"/></td>
    <td colspan="3">
            <html:text size="40" property="employeeId" />
    </td>
    </tr>
    <tr>
    <td><fmt:message key="fieldLabel.roles"/></td>
    <td colspan="3">
            <html:select multiple="true" size="4" property="roleIds">
                <html:options collection="allRoles" labelName="name" property="roleId"/>
            </html:select>
    </td>
    </tr>

    <tr>
        <td>&nbsp;</td>
        <td colspan="2" align="left"><br></br>
            <button type="submit">
                <img src="img/button_submit.gif" alt="" align="middle">
            </button>&nbsp;
            <a href="javascript:history.back();">
                <img src="img/button_cancel.gif" alt="" align="absmiddle" border="0">
            </a>
        </td>
    </tr>

</table>
</html:form>